package cn.virens.util.page;

import javax.servlet.http.HttpServletRequest;

import cn.virens.util.RequestUtil;

public class DataTableRequest extends Page {
	private static final long serialVersionUID = 1L;
	private int draw = 0;

	public DataTableRequest(HttpServletRequest request) {
		// 获取基本分页属性
		this.setLimit(RequestUtil.getValueInt(request, "length", -1));
		this.setOffset(RequestUtil.getValueInt(request, "start", 0));
		this.setDraw(RequestUtil.getValueInt(request, "draw", 0));
	}

	public int getDraw() {
		return draw;
	}

	public void setDraw(int draw) {
		this.draw = draw;
	}

}
